@echo off

node lib.js %hardFloat%
node glibc.js %hardFloat%
node soft-fp.js %hardFloat%

rem set gccpath=Z:\gcc-7.4.0
set gccpath=gcc
rem set gccpath=gcc base
rem set gccpath=gcc old

rem "%gccpath%\cc1plus.exe" --help
rem pause

set PARAM= -O2 -Os -quiet -Wno-write-strings -Wno-attributes -Wno-builtin-declaration-mismatch -fno-builtin
set PARAM=%PARAM% -I./glibc
rem set PARAM=%PARAM% -mcustom-fadds=0 -mcustom-fsubs=1 -mcustom-fmuls=2 -mcustom-fdivs=3 -mcustom-fcmpeqs=8 -mcustom-fcmpges=9 -mcustom-fcmpgts=10 -mcustom-fcmples=11 -mcustom-fcmplts=12 -mcustom-fcmpnes=13
set ASM=

"%gccpath%\cc1plus.exe" %PARAM% basictest.cpp -o basictest.s           & set ASM="basictest.s"

@echo on
compile basictest.s,lib.s,glibc.s,soft-fp.s basictest.temp.s dos out.bin
pause
